//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Cara.h"
//---------------------------------------------------------------------------

Cara::Cara(int numVertices, VerticeNormal** vN){
        _nVertice=numVertices;
        _verticeNormal=vN;
        _normal=NULL;
}

Cara::~Cara(){
        for(int i=0; i<_nVertice; i++){
                delete _verticeNormal[i];
        }
        delete[] _verticeNormal;

        if(_normal!=NULL){
                delete _normal;
        }
}

void Cara::setNormal(PV3D* leNormal){
        _normal=leNormal;
}

int Cara::getIN(int i){
        return _verticeNormal[i]->getNormal();
}
int Cara::getIV(int i){
        return _verticeNormal[i]->getVertice();
}
//---------------------------------------------------------------------------

#pragma package(smart_init)
